<template>
  <div class="category">
    <!-- <h2>{{ title }}</h2> -->
     <!-- 默认插槽名称 default 可以省略 -->
    <!-- <slot name="defalut"></slot> -->
    <slot name="s1">默认内容1</slot>
    <slot name="s2">默认内容2</slot>
  </div>
</template>

<script setup lang="ts" name="Category">
/**
 * @name: Category
 * @author: chuanshen
 * @date: 2024-08
 */

defineProps(['title'])
</script>

<style scoped>
.category {
  background-color: skyblue;
  border-radius: 10px;
  box-shadow: 0 0 10px;
  padding: 10px;
  width: 200px;
  height: 300px;
}
h2 {
  background-color: orange;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}
</style>